﻿using Apps.Common;
using Apps.Models;
using Apps.Models.S;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Apps.IBLL.S
{
    public partial interface IS_SAMPLE_CHECKBLL
    {
        List<V_S_SAMPLEEXPIRE_RL> GetSAMPLEEXPIRE_RLList(ref GridPager pager, Expression<Func<V_S_SAMPLEEXPIRE_RL, bool>> whereLambda);
        List<V_S_SAMPLEEXPIRE_RC> GetSAMPLEEXPIRE_RCList(ref GridPager pager, Expression<Func<V_S_SAMPLEEXPIRE_RC, bool>> whereLambda);
        List<S_SAMPLE_CHECKModel> GetRLList(ref GridPager pager, string startdate, string enddate, int type = 0);
        List<S_SAMPLE_CHECKModel> GetRCList(ref GridPager pager, string startdate, string enddate, int type = 0);
        S_SAMPLE_CHECKModel GetById(string checkid);
        List<S_SAMPLE_CHECKDETAILModel> GetDetailById(string checkid);
        bool DeleteDetail(ref ValidationErrors errors, string checkid);
        bool CreateDetail(ref ValidationErrors errors, List<S_SAMPLE_CHECKDETAILModel> models);
        List<S_SAMPLE_CHECKDETAIL> GetListByCheckID(ref GridPager pager, string checkid);

        bool Create(ref ValidationErrors errors, S_SAMPLE_CHECKModel model, List<S_SAMPLE_CHECKDETAIL> models);
        bool Edit(ref ValidationErrors errors, S_SAMPLE_CHECKModel model, List<S_SAMPLE_CHECKDETAIL> models);
    }
}
